import java.io.IOException;
import br.ufal.lexico.Lexico;
import br.ufal.sintatico.Sintatico;

public class Main {

	public static void main(String[] args) throws IOException {
		String file;
		Lexico lexico;
		Sintatico sintatico;
		//System.out.println("Arquivo:");
		//Scanner scanner = new Scanner(System.in);
		//file = scanner.next();
		file = "teste.br";
		lexico = new Lexico(file);
		
		/*Token tk = lexico.letoken();
		while(tk!= null){
			System.out.println(tk);
			tk = lexico.letoken();
		}*/
		
		
		
		sintatico = new Sintatico();
		sintatico.setLexico(lexico);
		try {
			sintatico.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
